package com.lvy.hczn.front.system.domain.business;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lvy.hczn.front.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * 类别
 *
 * @author yw
 * @date 2022-03-22 09:57:15
 **/
@Data
@TableName("category")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "类别信息")
public class Category extends BaseModel<Category> {

    @ApiModelProperty(value = "平台主键,自增长")
    private String categoryId;

    @ApiModelProperty(value = "类别名称")
    private String cateName;

    @ApiModelProperty(value = "分类父级ID")
    private String parentId;

    @ApiModelProperty(value = "类别编码")
    private String cateCode;

    /*@ApiModelProperty(value = "匹配wcs类别编号，自增，最大65535种")
    private Integer typeCode;*/

    @ApiModelProperty(value = "保质期(品类保质期预留，入库单输入保质期为主，供应商乱输保质期不管，入库单保质期>原料保质期>品类保质期)")
    private LocalDate shelfLife;

    @ApiModelProperty(value = "面包屑，用横杠分割")
    private String crumb;

    @ApiModelProperty(value = "分类等级")
    private Integer level;

    @ApiModelProperty(value = "分类图片")
    private String sizePicture;

    @ApiModelProperty(value = "显示顺序")
    private Integer sort;

    @ApiModelProperty(value = "分类图标")
    private String cateIcon;
}
